package own.stu.jobgib.playown.vediodown.common.model;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;

public interface BaseDataInfo<T, P> extends BaseDataFilter<T> {

    Logger logger = LoggerFactory.getLogger(BaseDataInfo.class);

    List<T> getItemList();

    SimpleMediaItem transFor(T t);

    default Long getUserId() {
        return 0L;
    }

    default P getPageInfo() {
        return null;
    }

    default List<String> getExistUrls(String originUrl) {
        return new ArrayList<>();
    }

    default boolean hasNext() {
        return false;
    }
}
